<%@ page import="cn.gudian.cms.Message.LinkMan" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title><g:message code="linkMan.create" default="Create LinkMan"/></title>

</head>
<body>

<div class="body">
  <h1></h1>
  <g:if test="${flash.message}">
    <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}"/></div>
  </g:if>
  <g:hasErrors bean="${linkManInstance}">
    <div class="errors">
      <g:renderErrors bean="${linkManInstance}" as="list"/>
    </div>
  </g:hasErrors>
  <g:form action="save" method="post">
    <div class="dialog">
      <table>
        <tbody>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="linkGroup"><g:message code="linkMan.linkGroup" default="Link Group"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'linkGroup', 'errors')}">
            <g:select name="linkGroup.id" from="${cn.gudian.cms.Sms.LinkGroup.list()}" optionKey="id" value="${linkManInstance?.linkGroup?.id}"/>

          </td>
        </tr>
        <tr class="prop">
          <td valign="top" class="name">
            <label for="name"><g:message code="linkMan.name" default="Name"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'name', 'errors')}">
            <g:textField name="name" value="${fieldValue(bean: linkManInstance, field: 'name')}"/>

          </td>
          <td valign="top" class="name">
            <label for="mobile"><g:message code="linkMan.mobile" default="Mobile"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'mobile', 'errors')}">
            <g:textField name="mobile" value="${fieldValue(bean: linkManInstance, field: 'mobile')}"/>

          </td>
        </tr>

       

        <tr class="prop">
          <td valign="top" class="name">
            <label for="tel"><g:message code="linkMan.tel" default="Tel"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'tel', 'errors')}">
            <g:textField name="tel" value="${fieldValue(bean: linkManInstance, field: 'tel')}"/>

          </td>
            <td valign="top" class="name">
            <label for="email"><g:message code="linkMan.email" default="Email"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'email', 'errors')}">
            <g:textField name="email" value="${fieldValue(bean: linkManInstance, field: 'email')}"/>

          </td>
        </tr>

       

        <tr class="prop">
          <td valign="top" class="name">
            <label for="company"><g:message code="linkMan.company" default="Company"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'company', 'errors')}">
            <g:textField name="company" value="${fieldValue(bean: linkManInstance, field: 'company')}"/>

          </td>
            <td valign="top" class="name">
            <label for="place"><g:message code="linkMan.place" default="Place"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'place', 'errors')}">
            <g:textField name="place" value="${fieldValue(bean: linkManInstance, field: 'place')}"/>

          </td>
        </tr>

       

        <tr class="prop">
          <td valign="top" class="name">
            <label for="comTel"><g:message code="linkMan.comTel" default="Com Tel"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'comTel', 'errors')}">
            <g:textField name="comTel" value="${fieldValue(bean: linkManInstance, field: 'comTel')}"/>

          </td>
            <td valign="top" class="name">
            <label for="comFax"><g:message code="linkMan.comFax" default="Com Fax"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'comFax', 'errors')}">
            <g:textField name="comFax" value="${fieldValue(bean: linkManInstance, field: 'comFax')}"/>

          </td>
        </tr>

     

        <tr class="prop">
          <td valign="top" class="name">
            <label for="description"><g:message code="linkMan.description" default="Description"/>:</label>
          </td>
          <td colspan="3" valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'description', 'errors')}">
            <g:textArea name="description" value="${fieldValue(bean: linkManInstance, field: 'description')}" style="width:100%;height:40px;"/>

          </td>
        </tr>


        </tbody>
      </table>
    </div>
    <div class="buttons">
      <span class="button"><g:submitButton name="create" class="save" value="添加完成后关闭"/></span> <g:submitButton name="create" class="save" value="添加完成并继续添加"/>
    </div>
  </g:form>
</div>
</body>
</html>
